import { Component, OnInit, Inject } from '@angular/core';
import { MD_DIALOG_DATA, MdDialogRef, OverlayContainer } from '@angular/material';

@Component({
  selector: 'app-project-create',
  templateUrl: './project-create.component.html',
  styleUrls: ['./project-create.component.scss']
})
export class ProjectCreateComponent implements OnInit {

  constructor(
    //接收数据
    @Inject(MD_DIALOG_DATA) private data: any,
    //返回数据
    private dialogRef: MdDialogRef<ProjectCreateComponent>,
    //
    private oc: OverlayContainer
  ) { }

  ngOnInit() {
    //黑夜主题app-dark-theme
    this.oc.themeClass
    console.log(this.data);
  }

  colseDialog() {
    this.dialogRef.close('close the message');
  }

}
